import request from '@/utils/request'

// 用户登录
export const loginAPI = data => request({
  url: '/sys/login',
  method: 'POST',
  data
})

// 获取用户基本信息
export const getUserInfoAPI = () => request({
  url: '/sys/profile'
})

// 修改密码
export const updatePasswordAPI = data => request({
  url: `/sys/user/updatePass`,
  method: 'PUT',
  data
})
